<template>
<div class="auth-container">
     <div class="sysBox">
        <div class="title-content">
          <div style="color: white">
            <div class="title">AI 智能数据院长决策系统</div>
            <div class="sub-title">人云联拓医疗智能体・人工智能底座加持</div>
          </div>
        </div>
        <div class="desc">本系统承载全院核心诊疗数据及智能决策引擎核心参数。为保障数据合规与医疗安全，需通过身份核验解锁访问权限。</div>
       <div class="desc">请完成认证流程，解锁 AI 赋能的医疗数据可视化中枢，所有操作将全程留痕，严格遵循《医疗数据安全指南》规范。</div>

       <div class="auth-wrapper">
            <div class="auth-title">身份验证</div>
            <div class="box">
              <div class="left-box">
                <div style="margin-bottom: 10px">授权密钥</div>
                <el-input v-model="input" @input="inputChange" style="height: 50px;" placeholder="输入您的安全密钥"></el-input>
              </div>
              <img src="../static/zhiWen.png" class="right" alt="">
            </div>
            <div style="text-align: center;margin-top: 20px">系统将同步验证您的生物特征</div>
        </div>
       <div style="text-align: center;margin-bottom: 20px;color: #434B59">© 2025 人云联拓医疗智能体・遵循 HIPAA 及 GDPR 规范</div>
     </div>
</div>
</template>
<script setup>
import { ElMessage } from 'element-plus'
import {useRouter} from 'vue-router'
import {Message} from "@element-plus/icons-vue";
const input = ref('');
const router = useRouter();
const inputChange = ()=>{
  if (input.value == "glsrmyy2026"){
    ElMessage({message: '密钥核对正确！', type: 'success'})
    setTimeout(()=>{
      router.push({path:"/NavPage"})
    },1000*2)
  }
}
</script>
<style scoped lang="less">
.auth-container{
  color: #BCC1C8;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../static/loginImg.png");
  background-size: 100% 100%; /* 覆盖整个容器 */
  background-position: center center; /* 居中显示 */
  background-repeat: no-repeat; /* 不重复 */
  .sysBox{
    width: 1100px;
    background-color: #1F2937;
    border-radius: 10px;
    .title-content{
      display: flex;
      align-items: center;
      justify-content: center;
      height: 270px;
      border-top-left-radius: 10px;
      border-top-right-radius: 10px;
      background-image: url("../static/authBg.png");
      background-size: 100% 100%; /* 覆盖整个容器 */
      background-position: center center; /* 居中显示 */
      background-repeat: no-repeat; /* 不重复 */
      padding: 20px;
      margin-bottom: 20px;
      .title{
        text-align: center;
        font-size: 34px;
        font-weight: bolder;
        letter-spacing: 2px;
      }
      .sub-title{
        text-align: center;
        font-size: 18px;
        margin-top: 15px;
      }
    }
    .desc{
      padding: 5px 0;
      font-size: 16px;
      text-align: center;
    }
    .auth-wrapper{
       border-radius: 5px;
       background-color: #374151;
       margin: 40px auto;
       width: 500px;
       padding: 20px;
      .auth-title{
        text-align: center;
        font-size: 22px;
        margin-bottom: 10px;
      }
      .box{
         display: flex;
         justify-content: space-between;
         gap: 20px;
        .left-box{
          flex: 1;
          ::v-deep(.el-input__inner){
            color: white;
          }
          ::v-deep(.el-input__wrapper){
            background-color: #4B5563;
            box-shadow: none;
            border-radius: 5px;
          }
        }
        .right{
            display: block;
          width: 70px;
          height: 80px;
        }
      }
    }
  }
}
</style>